Skip to main content

Allowed Denoms

Queries the available denominations for the specified token Id found on the specified chain.

query Allowed_denoms($chainUid: String!, $tokenId: String) {
factory(chain_uid: $chainUid) {
allowed_denoms(token_id: $tokenId) {
... on NativeTokenType {
native {
denom
}
}
... on SmartTokenType {
smart {
contract_address
}
}
... on VoucherTokenType {
voucher
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Allowed_denoms($chainUid: String!, $tokenId: String) {\n factory(chain_uid: $chainUid) {\n allowed_denoms(token_id: $tokenId) {\n ... on NativeTokenType {\n native {\n denom\n }\n }\n ... on SmartTokenType {\n smart {\n contract_address\n }\n }\n ... on VoucherTokenType {\n voucher\n }\n }\n }\n}","variables":{"chainUid":"stargaze","tokenId":"usdt"}}'

Open in Playground

Arguments

  • chainUid (String!): The unique identifier of the chain.
  • token_id (String!): The Id of the token to get all denominations for.

Return Fields

FieldTypeDescription
nativeNativeDetails of the native tokens (Denoms).
smartSmartDetails of the CW20 tokens (Contract addresses).
VoucherStringDetails about the Voucher token.

Native

FieldTypeDescription
denomStringThe denomination of the native token.

Smart

FieldTypeDescription
contractAddressStringThe contract address of the smart token.